package com.springsecurity.data.repositories;

import com.springsecurity.data.domains.Reference;
import java.util.List;
import org.springframework.data.repository.CrudRepository;

/**
 *
 * @author Evgeny Obednin
 */
public interface ReferenceRepository extends CrudRepository<Reference, 
        Integer> {
    
    public List<Reference> findByAttributeId(Integer attributeId);
    
    public List<Reference> findByObjectId(Integer objectId);
    
    public List<Reference> findByReferenceId(Integer referenceId);
    
    public List<Reference> findByReferenceObjectId(Integer referenceObjectId);
    
    public List<Reference> findByObjectIdAndAttributeId(Integer objectId, 
            Integer attributeId);
    
}
